package model;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the role database table.
 * 
 */
@Entity
public class Role implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="role_id")
	private int roleId;

	@Column(name="role_libelle")
	private String roleLibelle;

	@Column(name="role_prixheure")
	private float rolePrixheure;

	//bi-directional many-to-one association to Employe
	@OneToMany(mappedBy="role")
	private List<Employe> employes;

	public Role() {
	}

	public int getRoleId() {
		return this.roleId;
	}

	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}

	public String getRoleLibelle() {
		return this.roleLibelle;
	}

	public void setRoleLibelle(String roleLibelle) {
		this.roleLibelle = roleLibelle;
	}

	public float getRolePrixheure() {
		return this.rolePrixheure;
	}

	public void setRolePrixheure(float rolePrixheure) {
		this.rolePrixheure = rolePrixheure;
	}

	public List<Employe> getEmployes() {
		return this.employes;
	}

	public void setEmployes(List<Employe> employes) {
		this.employes = employes;
	}

}